<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html >
<html>
<head>
<title>选择会员</title>
<t:base type="jquery,easyui,tools"></t:base>
</head>
<body style="overflow-y: hidden" scroll="no">
<t:datagrid  pagination="true"  name="mbList" title="" actionUrl="articleGroupInfoController.do?datagridChooseMb" idField="id" checkbox="true" showRefresh="false"  fit="true"  queryMode="group" onLoadSuccess="initCheck">
	<t:dgCol title="会员ID" field="id" hidden="true"></t:dgCol>
	<t:dgCol title="会员名" field="userName" width="50" query="true" ></t:dgCol>
	<t:dgCol title="手机号" field="mobile" width="50" query="true" ></t:dgCol>
</t:datagrid>
</body>
</html>
<script type="text/javascript">
function initCheck(data){
	var ids = "${ids}";
	var idArr = ids.split(",");
	for(var i=0;i<idArr.length;i++){
		if(idArr[i]!=""){
			$("#mbList").datagrid("selectRecord",idArr[i]);
		}
	}
}

function getMembers(){
	var rowsData = $("#mbList").datagrid("getChecked"); 
	if(rowsData.length==0){ 
		return "";
	}
	return rowsData;
}


</script>